﻿using UnityEngine;
using System.Collections;
using com.bot.game.shuankou.msg;

public class GameManager : SparkSingleton<GameManager>
{
    public bool isDebug;
    public float initSound;
    public float initVolumn;
    public string BGMName;
    public SoundManager soundManager;

    public EventManager evtManager ;//= new EventManager();//普通消息管理器
    // Use this for initialization
    void Start()
    {
        isDebug = true;
        evtManager = new EventManager();
        soundManager = new SoundManager(initSound, initVolumn, BGMName);
        this.GetComponent<AudioSource>().volume = initVolumn;
        this.GetComponent<AudioSource>().clip = Resources.Load("Client/Music/" + BGMName) as AudioClip;
        UIManager.Instance.popMenu("MainMenu");
        onStart();
    }
    public virtual void onStart()
    {

    }

    void Update()
    {
        if (isDebug)
        {
         //   NetDataHandler.Instance.HeatUpdate(); // 心跳包
            
        }
    }

}
